package org.ManagerSystem.DAO;

import org.ManagerSystem.entity.Employee;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface EmployeeDAO {

    //员工登录判断
    void login(Map<String , Object> paramsMap);

    //按用户名查询员工信息
    Employee queryByEusername(String eusername);

    //按部门分页查询部门信息
    List<Employee> employeeList(@Param(value = "start") int start , @Param(value = "pageSize") int pageSize , @Param(value = "did") long did);

    //查询总共有多少员工记录
    int findCount(@Param(value = "did") long did);

    //按员工编号查询
    int queryByEnumber(String enumber);

    void save(Employee employee);

    Employee queryById(long eid);

    void update(Employee employee);

    void deleteById(long eid);

    void updatePassword(Employee employee);
}
